package com.ejd.web.bo;

import javax.faces.application.FacesMessage;

import com.ejd.utils.MessageFactory;
import com.ejd.web.constant.EjdConstants;

/**
 * AbstractProductbrand entity provides the base persistence definition of the
 * Productbrand entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public abstract class AbstractPaymentType extends java.lang.Object implements
		java.io.Serializable {

	// Fields

	private Long id;
	private String paymentTypeId;
	private String paymentTypeName;
	private Integer serialNumber;
	// Constructors

	/** default constructor */
	public AbstractPaymentType() {
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}


	public String getPaymentTypeId() {
		return paymentTypeId;
	}

	public void setPaymentTypeId(String paymentTypeId) {
		this.paymentTypeId = paymentTypeId;
	}

	public String getPaymentTypeName() {
		return paymentTypeName;
	}

	public void setPaymentTypeName(String paymentTypeName) {
		this.paymentTypeName = paymentTypeName;
	}

	public Integer getSerialNumber() {
		return serialNumber;
	}

	public void setSerialNumber(Integer serialNumber) {
		this.serialNumber = serialNumber;
	}
	public String getPaymentTypeNameDisplay(){
		String nameIn18 = "";
		nameIn18 = MessageFactory.getMessage(EjdConstants.USER_BUNDLE_NAME,this.getPaymentTypeName(), FacesMessage.SEVERITY_ERROR).getDetail();
		return nameIn18;
	}
	

	
}